Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/crypto/blowfish.ts>Blowfish

🔐 Fastest crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2
Latest
class Blowfish
implements BlockCipher
import { Blowfish } from "https://deno.land/x/crypto@v0.10.1/blowfish.ts";

Blowfish block cipher.

Note: This is a low level class. Use a block cipher mode to encrypt and decrypt data.

Constructors

new
Blowfish(key: Uint8Array)

Methods

private
f(x: number): number
decryptBlock(data: DataView, offset: number)
encryptBlock(data: DataView, offset: number)

Static Properties

readonly
BLOCK_SIZE: number

The block size of the block cipher in bytes.