Skip to main content
Module

x/crypto/mod.ts>Blowfish

🔐 Fastest crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, HMAC, HKDF, PBKDF2
Go to Latest
class Blowfish
import { Blowfish } from "https://deno.land/x/crypto@v0.3.5/mod.ts";

Constructors

new
Blowfish(key: string | Uint8Array, options?: BlowfishOptions)

Properties

private
optional
iv: Uint8Array
private
mode
private
readonly
p: number[]
private
padding
private
readonly
s: number[][]

Methods

private
decryptBlock(l: number, r: number): [number, number]
private
decryptCBC(bytes: Uint8Array): Uint8Array
private
decryptECB(bytes: Uint8Array): Uint8Array
private
encryptBlock(l: number, r: number): [number, number]
private
encryptCBC(bytes: Uint8Array): Uint8Array
private
encryptECB(bytes: Uint8Array): Uint8Array
private
f(x: number)
decrypt(data: Uint8Array): Uint8Array
encrypt(data: Uint8Array): Uint8Array

Static Properties

private
readonly
P:
| 608135816
| 2242054355
| 320440878
| 57701188
| 2752067618
| 698298832
| 137296536
| 3964562569
| 1160258022
| 953160567
| 3193202383
| 887688300
| 3232508343
| 3380367581
| 1065670069
| 3041331479
| 2450970073
| 2306472731
[]
private
readonly
S: number[][]
readonly
MODE
readonly
PADDING

Static Methods

private
expandKey(key: Uint8Array): Uint8Array