bf encrypt & decrypt online

Legacy

Encrypt or decrypt text with bf and a secret. Same result as PHP's openssl_encrypt, and nothing leaves your browser.

Shorter secrets are padded with zero bytes to 16 bytes. No IV, PHP uses zero bytes.
Runs in your browser

Give our bf encrypt/decrypt tool a try!

bf encrypt or bf decrypt any string with just one mouse click.

Use it in code

The same result in your code

With the text hello world and the secret my secret the tool gives exactly what PHP gives. Use it to check your own code.

PHPsame result as the tool
echo openssl_encrypt("hello world", "bf", "my secret");
// YuDc6ePgS6mUTgsVwrtVsg==
Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.