1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/crypto/blowfish/blowfish_test.v
2021-11-28 12:40:50 +02:00

9 lines
204 B
V

import crypto.blowfish
import encoding.base64
fn test_crypto_blowfish() {
key := 'password'.bytes()
csalt := base64.decode('an2da3dn')
bf := blowfish.new_salted_cipher(key, csalt) or { panic(err) }
}