Documentation
160 rules across 5 languages, plus formats that carry cryptography in any language. Every list here is generated from the scanner's own rule catalogue.
Describes Crypto-View 5.19.0, the current release. Last updated: 28 October 2026.
Supported languages
Each file is read as text with comments masked out, after a first pass over the repository collects the names files share. Each finding carries a confidence showing how specific the match was.
Open a language for its libraries and the functions each rule looks for.
Java
Apache Milagro
- Pairing-based cryptography through Apache Milagro
In scope 3
PAIR.ate()PAIR.fexp()new HASH256()
BouncyCastle
- RSA through the BouncyCastle low-level API
- Elliptic-curve cryptography through BouncyCastle
- Edwards-curve signatures through BouncyCastle
- Symmetric cipher through BouncyCastle
- Digest through BouncyCastle
- Message authentication code through BouncyCastle
- Classical public-key algorithm through BouncyCastle
- Post-quantum algorithm through BouncyCastle
- Private key read or written as PEM
In scope 77
RSAEngineRSABlindedEngineRSAKeyPairGeneratorRSADigestSignerRSAKeyParametersPKCS1EncodingOAEPEncodingECDSASignerECKeyPairGeneratorECNamedCurveTableX9ECParametersECDHBasicAgreementECDHCBasicAgreementECPrivateKeyParametersECPublicKeyParametersECIESEngineEd25519SignerEd448SignerEd25519KeyPairGeneratorEd448KeyPairGeneratorX25519AgreementX448AgreementAESEngineAESFastEngineAESLightEngineSalsa20EngineXSalsa20EngineChaCha7539EngineChaChaEngineDESEngineDESedeEngineRC4EngineBlowfishEngineSEEDEngineCamelliaEngineGCMBlockCipherCCMBlockCipherEAXBlockCipherOCBBlockCipherCBCBlockCipherSICBlockCipherMD5DigestSHA1DigestSHA224DigestSHA256DigestSHA384DigestSHA512DigestSHA3DigestBlake2bDigestBlake2sDigestRIPEMD160DigestSM3DigestKeccakDigestnew HMac()new CMac()new GMac()new Poly1305()new SipHash()new KMAC()new DSASigner()new DSAKeyPairGenerator()new DHBasicAgreement()new DHKeyPairGenerator()new ElGamalEngine()new ElGamalKeyPairGenerator()MLKEMKeyPairGeneratorMLKEMGeneratorMLDSASignerSLHDSASignerKyberKeyPairGeneratorDilithiumSignerSPHINCSPlusSignerLMSKeyPairGeneratorXMSSKeyPairGeneratornew JcaPEMKeyConverter().getPrivateKey()(PEMKeyPair) parser.readObject()new JcaPKCS8Generator()
HTTP authentication
- HTTP Digest authentication
In scope 2
DigestSchemeDigestSchemeFactory
JCA/JCE
- Classical key pair generated through the JCA
- Algorithm chosen at runtime
- Classical public-key cipher through the JCA
- Classical signature algorithm through the JCA
- Classical key agreement through the JCA
- Classical key material handled through the JCA
- Hash algorithm through the JCA
- Message authentication code through the JCA
- Key store holding classical key material
- TLS context created in code
- Cipher transformation named away from the call
- Key material constructed for a named algorithm
- Mask-generation digest named for RSA padding
- Named elliptic curve requested
- Non-cryptographic randomness near key material
- Random number generation
- Password hashing or key derivation
In scope 46
KeyPairGenerator.getInstance()KeyPairGenerator.initialize()KeyPairGenerator.getInstance(name)Cipher.getInstance(name)Signature.getInstance(name)KeyAgreement.getInstance(name)KeyFactory.getInstance(name)KeyGenerator.getInstance(name)Mac.getInstance(name)MessageDigest.getInstance(name)SecretKeyFactory.getInstance(name)Cipher.getInstance()KeyGenerator.getInstance()SecretKeyFactory.getInstance()Signature.getInstance()KeyAgreement.getInstance()KeyFactory.getInstance()AlgorithmParameterGenerator.getInstance()MessageDigest.getInstance()Mac.getInstance()KeyStore.getInstance("JKS")KeyStore.getInstance("PKCS12")KeyStore.getInstance("JCEKS")KeyStore.getInstance("BCFKS")KeyStore.getInstance("BKS")SSLContext.getInstance("TLS")encrypt(bytes, iv, key, "AES/CBC/PKCS7Padding")private static final String T = "AES/GCM/NoPadding"new SecretKeySpec(bytes, "AES")new PBEKeySpec()new DESKeySpec()MGF1ParameterSpec.SHA256new MGF1ParameterSpec("SHA-256")ECGenParameterSpec("secp256r1")new Random()Math.random()new SecureRandom()SecureRandom.getInstance()SecureRandom.getInstanceStrong()PBKDF2WithHmacSHA256PBKDF2WithHmacSHA1Argon2BytesGeneratorSCryptBCryptOpenBSDBCryptPKCS5S2ParametersGenerator
JGSS / Kerberos
- Kerberos or SPNEGO authentication
In scope 6
GSSManagerGSSContextKerberosTicketKerberosPrincipalKerberosSchemeSPNegoScheme
Module and package imports
- Cryptographic library imported
Modules recognised 9
com.nimbusds.joseio.jsonwebtokenjava.securityjavax.cryptojavax.net.ssljavax.security.auth.kerberosorg.bouncycastleorg.bouncycastle.pqcorg.ietf.jgss
NTLM
- NTLM authentication
In scope 5
NTLMEngineNTLMEngineImplNTLMSchemeNTCredentialsNTLMv2
Python
bcrypt / argon2 / passlib
- Password hashing or key derivation
In scope 6
PBKDF2HMAC()Scrypt()Argon2id()bcrypt.hashpw()bcrypt.checkpw()kdf.pbkdf2()
hashlib
- Broken hash function
- Hash function in use
In scope 12
hashlib.md5()hashlib.sha1()hashlib.new("md5")hashlib.new("sha1")hashlib.sha224()hashlib.sha256()hashlib.sha384()hashlib.sha512()hashlib.sha3_256()hashlib.sha3_512()hashlib.blake2b()hashlib.blake2s()
hmac
- Keyed hash in use
In scope 3
hmac.new()hmac.digest()hmac.HMAC()
Module and package imports
- Cryptographic library imported
Modules recognised 20
CryptoCryptodomeOpenSSLargon2bcryptcryptographyecdsahashlibhmacjosejwtnacloqsparamikopasslibpqcryptopyasn1scryptsecretsssl
paramiko
- SSH key handled by paramiko
In scope 4
paramiko.RSAKeyparamiko.ECDSAKeyparamiko.Ed25519Keyparamiko.DSSKey
pyca/cryptography
- RSA key generated with pyca/cryptography
- Elliptic-curve key generated with pyca/cryptography
- ECDH key agreement
- X25519 key agreement
- Ed25519 signing key
- Finite-field Diffie-Hellman
- DSA signing key
- RSA-OAEP encryption padding
- PKCS#1 v1.5 padding
- AES block cipher
- Withdrawn symmetric cipher
In scope 25
rsa.generate_private_key()rsa.RSAPublicNumbers()rsa.RSAPrivateNumbers()ec.generate_private_key()ec.ECDH().exchange(ec.ECDH())X25519PrivateKey.generate()X448PrivateKey.generate()Ed25519PrivateKey.generate()Ed448PrivateKey.generate()dh.generate_parameters()dh.DHParameterNumbers()dsa.generate_private_key()dsa.DSAPrivateNumbers()padding.OAEP()padding.PKCS1v15()algorithms.AES()AESGCM()AESOCB3()algorithms.TripleDESalgorithms.Blowfishalgorithms.ARC4algorithms.CAST5algorithms.IDEAalgorithms.SEED
pyca/cryptography, liboqs, pqcrypto
- Post-quantum algorithm in use
In scope 9
mlkem.MLKEM768PrivateKey.generate()MLKEM768PublicKey.from_public_bytes()mldsa.MLDSA65PrivateKey.generate()oqs.KeyEncapsulation()oqs.Signature()pqcrypto.kemML_KEMKyber768Dilithium3
PyCryptodome
- RSA through PyCryptodome
- Elliptic curves through PyCryptodome
- Signature scheme through PyCryptodome
In scope 8
RSA.generate()RSA.import_key()RSA.importKey()RSA.construct()ECC.generate()pkcs1_15.new()pss.new()DSS.new()
PyJWT
- JWT signed with a classical algorithm
In scope 2
jwt.encode(payload, key, algorithm="RS256")jwt.decode(token, key, algorithms=["RS256"])
pyOpenSSL
- Key generated through pyOpenSSL
In scope 4
crypto.TYPE_RSAcrypto.TYPE_DSAcrypto.TYPE_ECOpenSSL.crypto.PKey()
secrets / os
- Random number generation
In scope 6
secrets.token_bytes()secrets.token_hex()secrets.token_urlsafe()secrets.randbits()secrets.choice()os.urandom()
ssl
- TLS protocol version pinned in code
In scope 3
ssl.SSLContext()ssl.PROTOCOL_TLS_CLIENTssl.PROTOCOL_TLSv1_2
JavaScript and TypeScript
@noble
- Noble cryptography library in use
In scope 10
secp256k1.sign()secp256k1.verify()secp256k1.getPublicKey()secp256k1.getSharedSecret()ed25519.sign()ed25519.verify()ed25519.getPublicKey()p256.sign()p256.verify()p256.getPublicKey()
@oslojs/otp / otplib
- One-time passwords (HOTP / TOTP)
In scope 4
generateHOTP()verifyTOTP()createTOTPKeyURI()authenticator.generate()
@simplewebauthn/server
- WebAuthn passkeys registered or verified
In scope 3
verifyRegistrationResponse()verifyAuthenticationResponse()generateRegistrationOptions()
AWS SDK / Stripe
- Signed URL or webhook signature
In scope 3
getSignedUrl()getSignedCookies()stripe.webhooks.constructEvent()
bcrypt / argon2 / scrypt
- Password hashing or key derivation
In scope 6
pbkdf2()pbkdf2Sync()scrypt()scryptSync()hashSync()compareSync()
bip32 / ecpair / bitcoinjs
- Cryptocurrency key derivation
In scope 16
bip32.fromSeed()bip32.fromBase58()bip32.fromPublicKey()bip32.fromPrivateKey()bip39.mnemonicToSeed()ECPair.fromPrivateKey()ECPair.fromWIF()ECPair.makeRandom()ecc.sign()ecc.signSchnorr()ecc.verify()ecc.pointFromScalar()bitcoin.Psbtbitcoin.paymentsbitcoin.Transaction.derivePath()
elliptic
- Elliptic-curve library in use
In scope 2
new elliptic.ec("secp256k1")new EC("p256")
jsonwebtoken / jose
- JWT signed with a classical algorithm
In scope 3
jwt.sign(payload, key, { algorithm: "RS256" })jwt.verify(token, key, { algorithms: ["RS256"] })new SignJWT().setProtectedHeader({ alg: "ES256" })
Module and package imports
- Cryptographic library imported
Modules recognised 42
@noble/ciphers@noble/curves@noble/ed25519@noble/hashes@noble/post-quantum@noble/secp256k1@node-rs/argon2@node-rs/bcrypt@oslojs/crypto@scure/bip32@scure/bip39@signpdf/signpdfaes-jsargon2bcryptbcryptjsbip32bip39bitcoinjs-libbrowserify-aescreate-hashcreate-hmaccryptocrypto-jsecpairellipticjosejsonwebtokennode-forgenode-rsanode-signpdfnode:cryptooslootpauthotplibpdf-libripemd160secp256k1speakeasysshpktiny-secp256k1tweetnacl
noble-post-quantum / liboqs
- Post-quantum algorithm in use
In scope 5
ml_kem768ml_dsa65slh_dsamlkem768mldsa65
Node crypto
- Classical key pair generated with Node crypto
- Key pair algorithm chosen at runtime
- Signing or verification with a classical key
- Diffie-Hellman key agreement
- Withdrawn symmetric cipher
- One-shot signing or public-key encryption
- Keyed hash in use
- Symmetric cipher in use
In scope 21
crypto.generateKeyPair("rsa")crypto.generateKeyPairSync("ec")promisify(crypto.generateKeyPair)import { generateKeyPair as gen }generateKeyPair(kind)generateKeyPairSync(kind)crypto.createSign("RSA-SHA256")crypto.createVerify("SHA256")crypto.createDiffieHellman()crypto.createECDH("secp256k1")createCipheriv("des-ede3-cbc")createCipheriv("rc4")crypto.sign()crypto.verify()publicEncrypt()privateDecrypt()privateEncrypt()publicDecrypt()createHmac("sha256")createCipheriv("aes-256-gcm")createCipheriv("chacha20-poly1305")
Node crypto / WebCrypto
- Hash function in use
- Random number generation
In scope 6
createHash("sha256")subtle.digest("SHA-256")crypto.randomBytes()crypto.randomUUID()crypto.randomInt()crypto.getRandomValues()
node-forge
- Cryptography through node-forge
In scope 4
forge.pki.rsa.generateKeyPair()forge.pki.privateKeyforge.pki.publicKeyforge.pki.createCertificate()
tweetnacl
- NaCl primitives in use
In scope 4
nacl.boxnacl.signnacl.scalarMultnacl.secretbox
WebCrypto
- Classical key generated with WebCrypto
In scope 4
subtle.generateKey({ name: "RSA-OAEP" })subtle.generateKey({ name: "ECDSA" })subtle.generateKey({ name: "ECDH" })subtle.generateKey({ name: "Ed25519" })
Go
crypto/aes
- AES block cipher
In scope 5
aes.NewCipher()cipher.NewGCM()cipher.NewCBCEncrypter()cipher.NewCBCDecrypter()cipher.NewCTR()
crypto/des, crypto/rc4
- Withdrawn symmetric cipher
In scope 3
des.NewCipher()des.NewTripleDESCipher()rc4.NewCipher()
crypto/dsa
- DSA in the Go standard library
In scope 4
dsa.GenerateKey()dsa.GenerateParameters()dsa.Sign()dsa.Verify()
crypto/ecdh
- Key agreement in Go
In scope 5
ecdh.P256()ecdh.P384()ecdh.P521()ecdh.X25519()curve25519.X25519()
crypto/ecdsa
- ECDSA in the Go standard library
In scope 5
ecdsa.GenerateKey(elliptic.P256())ecdsa.Sign()ecdsa.Verify()ecdsa.SignASN1()ecdsa.VerifyASN1()
crypto/ed25519
- Ed25519 in the Go standard library
In scope 4
ed25519.GenerateKey()ed25519.Sign()ed25519.Verify()ed25519.NewKeyFromSeed()
crypto/hmac
- Keyed hash in use
In scope 2
hmac.New()hmac.Equal()
crypto/md5, crypto/sha1
- Broken hash function
In scope 5
md5.New()md5.Sum()sha1.New()sha1.Sum()md4.New()
crypto/mlkem, crypto/mldsa
- Post-quantum algorithm in use
In scope 2
mlkem768.GenerateKey()mldsa65.Sign()
crypto/rand
- Random number generation
In scope 4
rand.Read()rand.Int()rand.Prime()io.ReadFull(rand.Reader, b)
crypto/rsa
- RSA in the Go standard library
In scope 9
rsa.GenerateKey()rsa.SignPKCS1v15()rsa.VerifyPKCS1v15()rsa.SignPSS()rsa.VerifyPSS()rsa.EncryptOAEP()rsa.DecryptOAEP()rsa.EncryptPKCS1v15()rsa.DecryptPKCS1v15()
crypto/sha256, crypto/sha512, crypto/sha3
- Hash function in Go
In scope 9
sha256.Sum256()sha256.New()sha512.Sum512()sha512.New384()sha3.Sum256()sha3.NewLegacyKeccak256()blake2b.Sum256()ripemd160.New()keyutil.Fingerprint()
crypto/tls
- TLS configuration in code
In scope 3
tls.Config{}CipherSuites:CurvePreferences:
crypto/x509
- Public key parsed or encoded
- Private key parsed or encoded
In scope 10
x509.ParsePKIXPublicKey()x509.MarshalPKIXPublicKey()x509.ParsePKCS1PublicKey()x509.MarshalPKCS1PublicKey()x509.ParsePKCS1PrivateKey()x509.MarshalPKCS1PrivateKey()x509.ParseECPrivateKey()x509.MarshalECPrivateKey()x509.ParsePKCS8PrivateKey()x509.MarshalPKCS8PrivateKey()
go.mozilla.org/pkcs7
- PKCS#7 / CMS enveloped data in Go
In scope 3
pkcs7.Encrypt()p7.Decrypt(cert, key)pkcs7.EncryptionAlgorithmDESCBC
golang.org/x/crypto
- Password hashing or key derivation
In scope 7
bcrypt.GenerateFromPassword()bcrypt.CompareHashAndPassword()scrypt.Key()argon2.IDKey()argon2.Key()pbkdf2.Key()hkdf.New()
golang.org/x/crypto/chacha20poly1305
- ChaCha20 in Go
In scope 3
chacha20poly1305.New()chacha20poly1305.NewX()chacha20.NewUnauthenticatedCipher()
golang.org/x/crypto/ssh
- SSH implementation in use
In scope 8
ssh.NewSignerFromKey()ssh.ParsePrivateKey()ssh.ParsePublicKey()ssh.ParseAuthorizedKey()ssh.PublicKeys()ssh.NewPublicKey()signer.Sign(rand.Reader, data)key.Verify(data, sig)
Module and package imports
- Cryptographic library imported
Modules recognised 33
crypto/aescrypto/ciphercrypto/descrypto/dsacrypto/ecdhcrypto/ecdsacrypto/ed25519crypto/ellipticcrypto/hmaccrypto/md5crypto/mldsacrypto/mlkemcrypto/randcrypto/rc4crypto/rsacrypto/sha1crypto/sha256crypto/sha3crypto/sha512crypto/tlscrypto/x509github.com/btcsuite/btcdgithub.com/cloudflare/circlgolang.org/x/crypto/argon2golang.org/x/crypto/bcryptgolang.org/x/crypto/blake2bgolang.org/x/crypto/chacha20poly1305golang.org/x/crypto/curve25519golang.org/x/crypto/hkdfgolang.org/x/crypto/openpgpgolang.org/x/crypto/pbkdf2golang.org/x/crypto/scryptgolang.org/x/crypto/ssh
smallstep/pkcs7, google/go-attestation
- Signature with whatever key the code holds, in Go
In scope 2
signedData.AddSigner(cert, signer, config)certificationParameters.Verify(opts)
C and C++
Botan
- Cryptography through Botan
In scope 11
Cipher_Mode::create()HashFunction::create()MessageAuthenticationCode::create()RSA_PrivateKeyECDSA_PrivateKeyX25519_PrivateKeyML_KEM_PrivateKeycreate_private_key()PK_SignerPK_Encryptor_EMEPK_Key_Agreement
Crypto++
- Cryptography through Crypto++
In scope 10
GCM<AES>::EncryptionCBC_Mode<AES>::DecryptionSHA256HMAC<SHA256>RSASS<PSS, SHA256>::SignerRSAES_OAEP_SHA_EncryptorECDSA<ECP, SHA256>::SignerECDH<ECP>::Domainx25519StreamTransformationFilter()
CryptoAPI
- Cryptography through the legacy Windows CryptoAPI
In scope 7
CryptCreateHash()CryptGenKey()CryptDeriveKey()CryptEncrypt()CryptSignHash()CryptGenRandom()CryptProtectData()
GnuTLS
- Cryptography through GnuTLS
In scope 7
gnutls_cipher_init()gnutls_hash_fast()gnutls_hmac_init()gnutls_pbkdf2()gnutls_privkey_generate()gnutls_pubkey_verify_data2()gnutls_priority_set_direct()
libgcrypt
- Cryptography through libgcrypt
In scope 8
gcry_cipher_open()gcry_cipher_encrypt()gcry_md_open()gcry_md_hash_buffer()gcry_mac_open()gcry_kdf_derive()gcry_pk_genkey()gcry_pk_sign()
liboqs
- Post-quantum algorithm through liboqs
In scope 5
OQS_KEM_new()OQS_KEM_encaps()OQS_SIG_new()OQS_SIG_sign()OQS_KEM_ml_kem_768_keypair()
Mbed TLS
- Cryptography through Mbed TLS
- Private key parsed by Mbed TLS
In scope 14
mbedtls_cipher_info_from_type()mbedtls_md_info_from_type()mbedtls_aes_setkey_enc()mbedtls_gcm_setkey()mbedtls_sha256()mbedtls_md_hmac()mbedtls_rsa_gen_key()mbedtls_rsa_pkcs1_encrypt()mbedtls_ecdsa_genkey()mbedtls_ecdh_calc_secret()mbedtls_pk_sign()mbedtls_ctr_drbg_seed()mbedtls_pk_parse_key()mbedtls_pk_parse_keyfile()
Module and package imports
- Cryptographic library imported
Modules recognised 120
bcrypt.hbotan/cipher_mode.hbotan/dilithium.hbotan/ecdh.hbotan/ecdsa.hbotan/ed25519.hbotan/hash.hbotan/kyber.hbotan/ml_dsa.hbotan/ml_kem.hbotan/pubkey.hbotan/rsa.hbotan/tls.hbotan/x25519.hcrypto++/eccrypto.hcrypto++/rsa.hcryptoki.hcryptopp/aes.hcryptopp/des.hcryptopp/dh.hcryptopp/dsa.hcryptopp/eccrypto.hcryptopp/hmac.hcryptopp/md5.hcryptopp/osrng.hcryptopp/rsa.hcryptopp/sha.hcryptopp/xed25519.hgcrypt.hgnutls/abstract.hgnutls/crypto.hgnutls/gnutls.hgnutls/x509.hmbedtls/aes.hmbedtls/ccm.hmbedtls/chachapoly.hmbedtls/cipher.hmbedtls/ctr_drbg.hmbedtls/des.hmbedtls/dhm.hmbedtls/ecdh.hmbedtls/ecdsa.hmbedtls/gcm.hmbedtls/hkdf.hmbedtls/md.hmbedtls/md5.hmbedtls/pk.hmbedtls/pkcs5.hmbedtls/rsa.hmbedtls/sha1.hmbedtls/sha256.hmbedtls/sha512.hmbedtls/ssl.hmbedtls/x509_crt.hncrypt.hnettlenettle/aes.hnettle/curve25519.hnettle/des.hnettle/dsa.hnettle/ecdsa.hnettle/eddsa.hnettle/gcm.hnettle/md4.hnettle/md5.hnettle/rsa.hnettle/sha1.hnettle/sha2.hopenssl/aes.hopenssl/blowfish.hopenssl/camellia.hopenssl/cast.hopenssl/cmac.hopenssl/cms.hopenssl/des.hopenssl/dh.hopenssl/dsa.hopenssl/ec.hopenssl/ecdh.hopenssl/ecdsa.hopenssl/evp.hopenssl/hmac.hopenssl/idea.hopenssl/kdf.hopenssl/md4.hopenssl/md5.hopenssl/pkcs12.hopenssl/pkcs7.hopenssl/rand.hopenssl/rc2.hopenssl/rc4.hopenssl/ripemd.hopenssl/rsa.hopenssl/sha.hopenssl/ssl.hopenssl/x509.hopenssl/x509v3.hoqs/oqs.hpk11pub.hpkcs11.hpsa/crypto.hsodiumsodium.hwincrypt.hwolfssl/opensslwolfssl/ssl.hwolfssl/wolfcrypt/aes.hwolfssl/wolfcrypt/curve25519.hwolfssl/wolfcrypt/des3.hwolfssl/wolfcrypt/dh.hwolfssl/wolfcrypt/dilithium.hwolfssl/wolfcrypt/ecc.hwolfssl/wolfcrypt/ed25519.hwolfssl/wolfcrypt/hmac.hwolfssl/wolfcrypt/kyber.hwolfssl/wolfcrypt/md5.hwolfssl/wolfcrypt/rsa.hwolfssl/wolfcrypt/sha.hwolfssl/wolfcrypt/sha256.hwolfssl/wolfcrypt/wc_mlkem.h
OpenSSL
- Symmetric cipher through OpenSSL
- Hash function through OpenSSL
- Message authentication through OpenSSL
- Key derivation through OpenSSL
- RSA through OpenSSL
- Elliptic-curve and DSA signatures and keys through OpenSSL
- Key agreement through OpenSSL
- Post-quantum algorithm through OpenSSL
- Public-key operation with a key chosen elsewhere
- Algorithm chosen at run time through OpenSSL
- Random number generation through OpenSSL
- Private key read or written through OpenSSL
In scope 78
EVP_aes_256_gcm()EVP_EncryptInit_ex()EVP_DecryptInit_ex()EVP_CipherInit_ex()EVP_CIPHER_fetch()EVP_get_cipherbyname()EVP_EncryptFinal_ex()AES_set_encrypt_key()DES_ecb_encrypt()RC4_set_key()BF_cbc_encrypt()EVP_sha256()EVP_DigestInit_ex()EVP_MD_fetch()EVP_get_digestbyname()EVP_DigestFinal_ex()EVP_Q_digest()SHA256()SHA1()MD5()MD5_Init()HMAC()HMAC_Init_ex()HMAC_Final()EVP_MAC_fetch()EVP_MAC_final()EVP_Q_mac()CMAC_Init()EVP_PKEY_new_mac_key()PKCS5_PBKDF2_HMAC()EVP_KDF_fetch()EVP_KDF_derive()EVP_PBE_scrypt()EVP_BytesToKey()EVP_PKEY_CTX_new_id(EVP_PKEY_HKDF, NULL)EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL)EVP_RSA_gen()EVP_PKEY_CTX_set_rsa_keygen_bits()EVP_PKEY_CTX_set_rsa_padding()EVP_PKEY_encrypt()EVP_SealInit()CMS_encrypt()RSA_generate_key_ex()RSA_public_encrypt()RSA_sign()EVP_PKEY_CTX_new_id(EVP_PKEY_EC, NULL)EVP_EC_gen()EVP_PKEY_CTX_set_ec_paramgen_curve_nid()EVP_DigestSignInit()EC_KEY_new_by_curve_name()ECDSA_sign()ECDSA_do_verify()DSA_sign()EVP_PKEY_derive_init()EVP_PKEY_derive()EVP_PKEY_CTX_new_id(EVP_PKEY_X25519, NULL)EVP_PKEY_Q_keygen(NULL, NULL, "X25519")ECDH_compute_key()DH_generate_key()DH_compute_key()EVP_PKEY_Q_keygen(NULL, NULL, "ML-KEM-768")EVP_PKEY_CTX_new_from_name(NULL, "ML-DSA-65", NULL)EVP_PKEY_encapsulate()EVP_PKEY_decapsulate()EVP_PKEY_CTX_new(pkey, NULL)EVP_PKEY_sign_init()EVP_DigestSignInit(ctx, NULL, md, NULL, pkey)EVP_EncryptInit_ex(ctx, cipher, NULL, key, iv)EVP_DigestInit_ex(ctx, md, NULL)EVP_CIPHER_fetch(NULL, name, NULL)RAND_bytes()RAND_priv_bytes()EVP_RAND_fetch()PEM_read_bio_PrivateKey()d2i_PrivateKey()PEM_read_bio_RSAPrivateKey()SSL_CTX_use_PrivateKey_file()PEM_write_bio_PrivateKey()
PKCS#11
- Mechanism used through PKCS#11
In scope 8
CKM_RSA_PKCS_KEY_PAIR_GENCKM_ECDH1_DERIVECKM_AES_GCMCKM_SHA256_RSA_PKCSC_EncryptInit()C_SignInit()C_GenerateKeyPair()CKM_ML_KEM
PSA Crypto API
- Cryptography through the PSA Crypto API
In scope 10
psa_aead_encrypt()psa_cipher_encrypt()psa_hash_compute()psa_mac_compute()psa_sign_hash()psa_verify_hash()psa_asymmetric_encrypt()psa_raw_key_agreement()psa_key_derivation_setup()psa_generate_key()
Windows CNG
- Cryptography through Windows CNG
In scope 11
BCryptOpenAlgorithmProvider()BCryptGenerateKeyPair()BCryptEncrypt()BCryptSignHash()BCryptSecretAgreement()BCryptCreateHash()BCryptFinishHash()BCryptDeriveKeyPBKDF2()BCryptEncapsulate()NCryptCreatePersistedKey()NCryptSignHash()
Windows SSPI
- Authentication through Windows SSPI
In scope 4
AcquireCredentialsHandle(NULL, NTLMSP_NAME, ..)MICROSOFT_KERBEROS_NAMENEGOSSP_NAMESP_PROT_TLS1_2_CLIENT
wolfSSL
- Cryptography through wolfCrypt
In scope 13
wc_AesSetKey()wc_AesGcmEncrypt()wc_Sha256Hash()wc_HmacSetKey()wc_PBKDF2()wc_MakeRsaKey()wc_RsaPublicEncrypt()wc_ecc_make_key_ex()wc_ecc_shared_secret()wc_curve25519_shared_secret()wc_ed25519_sign_msg()wc_MlKemKey_Encapsulate()wolfSSL_UseKeyShare()
Formats and configuration
- Release signed by the build
- Algorithm named in a setting
In scope 14
apksigner signjarsigner -keystorecodesign --signsigntool signgpg --detach-signsignatureAlgorithm = "SHA256withRSA"withOaepPaddingDigestAlgorithm("SHA-512")"digestAlgorithm": "SHA-256"SYMMETRIC_KEY_TYPE = "AES"defaultProperty(HASH_ALGORITHM, "SHA2")"SHA-256".equals(algorithm)setProperty("crypto.hash_algorithm", "SHA2")const digest = 'sha256'getAlgorithm() { return "SM2"
COSE / WebAuthn
- COSE algorithm identifier
In scope 4
COSEAlgorithmIdentifier.ES256COSEAlgorithmIdentifier.EdDSAalg: -7alg: -257
Dependency manifests
- Cryptographic library in the dependency manifest
Packages recognised 31
@noble/curves@noble/post-quantumbcpkixbcprovbcprov-jdk18onbctlsbitcoinjs-libcryptographyellipticgithub.com/btcsuite/btcdgithub.com/cloudflare/circlgolang.org/x/cryptojjwtjosejsonwebtokennimbus-jose-jwtnode-forgenode-rsaoqsparamikopqcryptopycryptodomepycryptodomexpyjwtpyopensslpython-josesecp256k1sshpktinktiny-secp256k1tweetnacl
JOSE
- JOSE algorithm declared in configuration
- Public key declared as a JSON Web Key
- Signed token created or verified
In scope 14
"alg": "RS256""algorithm": "ES256"alg: RS512"kty": "RSA""kty": "EC", "crv": "P-256""kty": "OKP", "crv": "Ed25519"jose.NewSigner()jose.Signed()jws.Verify()jwt.Claims(key, &claims)JWS.sign()new SignJWT()jwtVerify()compactVerify()
NaCl / libsodium
- Ed25519 signatures through NaCl or libsodium
- X25519 key agreement through NaCl or libsodium
- Authenticated encryption through NaCl or libsodium
- Hashing and key derivation through NaCl or libsodium
- Random bytes through NaCl or libsodium
In scope 19
crypto_sign()crypto_sign_open()crypto_sign_keypair()crypto_sign_detached()crypto_box()crypto_box_open()crypto_box_keypair()crypto_box_seal()crypto_box_easy()crypto_scalarmult()crypto_secretbox()secretbox()secretbox_open()crypto_onetimeauth()crypto_hash()crypto_generichash()crypto_pwhash()randombytes()randombytes_buf()
Named algorithm constants
- Algorithm named by a constant
- Algorithm named by its object identifier
- Key type chosen by a setting
- Call to code named for an algorithm
- Algorithm implemented in the repository
In scope 22
JavaAlgorithm.SHA256XMLCipher.AES_128crypto.SHA256x509.SHA256WithRSASignatureMethod.RSA_SHA256DigestMethod.SHA256'1.2.840.113549.1.1.11''2.16.840.1.101.3.4.2.1''1.2.840.10045.3.1.7'elliptic_curve="secp256r1""P-384"rsa_key_size=2048Hash.sha256()hmacSha256()getMD5()new ScryptGenerator()new Ed25519PublicKey()sha256.digest()class MD4class Sha256class SCryptclass HMACMD5
nginx / Apache
- TLS versions pinned in configuration
In scope 2
ssl_protocolsSSLProtocol
nginx / Apache / HAProxy
- TLS cipher suites pinned in configuration
- TLS key-exchange groups pinned in configuration
In scope 8
ssl_ciphersSSLCipherSuitessl-default-bind-ciphersssl_ecdh_curveSSLOpenSSLConfCmd Curvesssl-default-bind-curvestls.CurveP256tls.X25519MLKEM768
OpenSSH
- SSH public key
- SSH algorithms pinned in configuration
In scope 12
ssh-rsassh-dssssh-ed25519ecdsa-sha2-nistp256ecdsa-sha2-nistp384ecdsa-sha2-nistp521sk-ssh-ed25519@openssh.comKexAlgorithmsHostKeyAlgorithmsCiphersMACsPubkeyAcceptedAlgorithms
PEM
- Private key committed to the repository
- Certificate signing request
- X.509 certificate
- Public key file
In scope 12
-----BEGIN PRIVATE KEY----------BEGIN RSA PRIVATE KEY----------BEGIN EC PRIVATE KEY----------BEGIN DSA PRIVATE KEY----------BEGIN OPENSSH PRIVATE KEY----------BEGIN ENCRYPTED PRIVATE KEY----------BEGIN CERTIFICATE REQUEST----------BEGIN NEW CERTIFICATE REQUEST----------BEGIN CERTIFICATE----------BEGIN TRUSTED CERTIFICATE----------BEGIN PUBLIC KEY----------BEGIN RSA PUBLIC KEY-----
PKCS#12
- Key store loaded
In scope 1
P12Signer.create(p12, passphrase)
TLS
- TLS used in code
- TLS cipher suite named in source
- Weak algorithm inside a TLS cipher suite
In scope 16
SSLContexts.createDefault()SSLSocketFactory.getDefault()setEnabledProtocols()setEnabledCipherSuites()startHandshake()tls.VersionTLS12tls.Dial()ssl.create_default_context()tls.connect()"TLSv1.2"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256ECDHE-RSA-AES128-GCM-SHA256TLS_AES_256_GCM_SHA384TLS_RSA_WITH_AES_128_CBC_SHATLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHATLS_ECDHE_ECDSA_WITH_RC4_128_SHA
X.509
- X.509 certificate handled in code
- Certificate signed or verified
- Certificate verification disabled
In scope 32
x509.load_pem_x509_certificate()x509.load_der_x509_csr()crypto.load_certificate()x509.ParseCertificate()x509.ParseCertificateRequest()pemutil.ReadCertificate()tls.LoadX509KeyPair()CertificateFactory.getInstance("X.509")generateCertificate()new X509Certificate()forge.pki.certificateFromPem()x509.CreateCertificate()x509.CreateCertificateRequest()x509.CreateRevocationList()csr.CheckSignature()cert.Verify(x509.VerifyOptions{})builder.sign(private_key, hashes.SHA256())csr.is_signature_validCertPathValidator.getInstance()CertPathBuilder.getInstance()cert.verify(issuer.getPublicKey())certBuilder.build(contentSigner)isSignatureValid()InsecureSkipVerify: truerejectUnauthorized: falseverify=Falsessl.CERT_NONEcheck_hostname = FalseNoopHostnameVerifierTrustAllStrategyInsecureTrustManagerFactoryNODE_TLS_REJECT_UNAUTHORIZED
XML-DSig / SAML
- XML signature or encryption algorithm
In scope 2
http://www.w3.org/2000/09/xmldsig#rsa-sha1http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256
Renamed imports are resolved
A function renamed on import is still recognised. Each local alias is rewritten to the name it was bound to before matching; line numbers stay the same, and such a finding is marked Renamed import.
| Language | Forms resolved |
|---|---|
| Python | import x.y as z, from x.y import z as w |
| JavaScript and TypeScript | import { a as b } from 'm', import * as m from 'm', const { a: b } = require('m'), promisify(generateKeyPair) |
| Go | import alias "crypto/rsa", also in a grouped import block |
| Java | import static java.security.MessageDigest.getInstance (Java's only aliasing) |
Imports and call sites
An import says what the codebase could reach, not what it does, so the report keeps imports apart from the locations.
| Kind | What it is | Counted as |
|---|---|---|
| Call site | A call, or an algorithm named in a string passed to one | A location, under its posture |
| Key material | A private key, public key or certificate in the tree | A location; a committed private key is the most serious finding |
| Configuration | A TLS cipher list, an SSH algorithm line, a JOSE alg | A location |
| Import | A module or package import, once per library per file | Inventory, never a location |
| Dependency | A manifest entry (pom.xml, package.json) | Inventory, never a location |
How a use is read
The scanner follows an object from the line that chooses the algorithm to
the lines that use it, and reports each line with what it does there:
encrypt, decrypt, sign,
verify, digest, tag,
keygen, keyderive, encapsulate,
decapsulate (key transport) or generate (random
numbers).
Direction. A two-way algorithm named where nothing is done
with it (case Algorithm.AES:, alg = RS256) reports
both directions, narrowed by the operations in the same method, then the
method's name (decrypt(..)), then the uses of a private
constant, then the file.
Values fixed elsewhere. A name is resolved to the literals the code fixes, also across files:
| The algorithm is | Example |
|---|---|
| A constant in the file | Cipher.getInstance(TRANSFORMATION) |
| Another file's constant | providers.put(CryptoConstants.RSA_OAEP, ..) |
| A field every construction sets | Cipher.getInstance(jcaAlgorithmName), with new Provider("RSA/ECB/PKCS1Padding") elsewhere |
| A parameter its callers pass literals | getInstance(algorithm), called as getInstance("SHA-256") |
| A method that only returns literals | Cipher.getInstance(getWrapAlgorithm(alg)) |
| An option of the call | jwtVerify(token, key, { algorithms: ['ES256'] }) |
What a key, a header or a configuration decides at run time is still
reported, with the algorithm not determined. A token,
certificate or SSH signature whose algorithm is the key's is
JWS, JWE, X.509 or SSH.
A bundled implementation (class Blake2bDigest) is reported
once, where it is defined; a wrapper around a library is not reported
again.
Quantum posture
Shor's algorithm breaks every public-key algorithm in wide use; Grover's algorithm halves a symmetric key's strength. The first needs a replacement, the second a parameter change.
| State | Contains | What it means |
|---|---|---|
| Quantum-vulnerable | RSA, DH, DSA, ECDSA, ECDH, EdDSA, X25519, X448, ECIES, ElGamal, secp256k1 |
A quantum computer of sufficient size breaks this completely. It has to be replaced, not tuned. A larger key does not help. |
| Reduced margin | AES-128, AES-192, SHA-224, SHA-256, SHA3-256 |
A quantum computer weakens this but does not break it. Increasing the key or digest size restores the margin. |
| Quantum-safe | ML-KEM, ML-DSA, SLH-DSA, HQC, LMS, XMSS, AES-256, SHA-384, SHA-512, SHA-3, ChaCha20-Poly1305, HMAC |
No known quantum attack changes how strong this is. |
| Already broken | MD5, SHA-1, DES, 3DES, RC4, Blowfish, PKCS#1 v1.5 encryption |
This is already unsafe today, with no quantum computer involved. These need fixing now. |
| Could not be determined | getInstance(key.getAlgorithm()), generateKeyPair(kind) |
The algorithm could not be established from the source. Usually it is selected while the program runs, but it may equally be that the call gives no clue, or that it is decided somewhere this scan does not reach. Somebody has to check. |
HNDL is set for key establishment only.
Key agreement and public-key encryption expose traffic recorded today; a
forged signature does not reveal anything recorded earlier. It follows the
use: RS256 and an X.509 certificate are not marked, though
both are RSA, and a key pair that could feed either keeps the mark.
Key sizes and curves
A key size is reported where the call, a PEM block or a
named curve establishes it (secp384r1 is a 384-bit key), and
never borrowed from a neighbouring line. An RSA modulus below the 2048-bit
floor of NIST SP 800-57 is reported as already broken.
What the report counts
| Number | What it counts |
|---|---|
| Cryptographic locations | Every call site, key, certificate and configuration entry, by posture. The inventory. |
| To address | The locations that need a decision. |
| Key establishment | Locations that expose traffic recorded today. These come first. |
| Imported libraries | What the codebase can reach, held apart from the locations. |
There is no readiness score: one was published until 5.9.0 and withdrawn, because readiness depends on what the data is worth and how long it must stay secret, which the source does not show.
CBOM output
CycloneDX 1.7 (ECMA-424, second edition), checked against the official 1.7 JSON schema: specification, release notes.
| Field | What Crypto-View puts there |
|---|---|
metadata.component | The repository. On this site with a vcs reference to the exact commit and the branch, commit, subject and date as properties; from the command line, the folder's name. |
components[] | One cryptographic-asset per algorithm, curve, key size and set of operations: algorithm, certificate, protocol or related-crypto-material. |
cryptoFunctions | What the code does at that component's locations. RSA used to generate keys, to sign and to decrypt is three components. |
algorithmFamily, ellipticCurve | Values from the 1.7 registries (RSAES-OAEP, secg/secp256r1); 1.6's free-text curve is kept alongside. |
nistQuantumSecurityLevel | The NIST post-quantum category, 1 to 5, or 0. |
evidence.occurrences[] | Every location: file, line, rule and CWE. |
properties[] | Under qcomply:: posture, HNDL, rule, confidence and the plain explanation. |
Each bom-ref is derived from the asset it names, so two scans
of the same commit can be compared line by line.
Command-line tool
A single Python file that needs Python 3.9 or newer and nothing else. The scan itself makes no external call.
Installs to ~/.local/bin (/usr/local/bin as
root; CRYPTO_VIEW_INSTALL_DIR to change it) after checking the
published SHA-256. Or download
crypto-view.pyz and run
python3 crypto-view.pyz.
What uses the network
| What | When |
|---|---|
| Scanning | Never. No telemetry, no rule fetching, no call home. |
| Reporting to a QComply account | Only with a token (QCOMPLY_TOKEN or --token); --no-report skips it for one run. |
crypto-view update | Only when you type it. The download is checked against the published SHA-256. |
Options
| Command | What it does |
|---|---|
crypto-view [PATH] | Scan a directory (default: the current one) and print the findings. |
--version | The installed version. |
crypto-view updatecrypto-view update --check | Replace the installed copy with the current release, or only say whether one exists. A download that does not match its SHA-256 replaces nothing. (Added in 5.4.0; on an older copy, run the installer again.) |
--json FILE | Write the CycloneDX 1.7 CBOM; - for stdout. |
--sarif FILE | Write SARIF 2.1.0, for code-scanning dashboards and editors. |
--codequality FILE | Write a Code Quality report (Code Climate format), for merge request reviews. |
--markdown FILE | Write a Markdown summary, for a CI job summary. |
--fail-on SELECTOR | Exit 1 when a finding matches, e.g. "hndl posture=vulnerable". Repeat for alternatives. |
--policy FILE | Named gates from a policy file (below). |
--new | Show, and gate on, only what is new since the last --new run here, or since --baseline (below). |
--state-dir DIR--no-state | Where --new keeps its record (default .crypto-view), or compare without recording. |
crypto-view history | The posture over the recorded runs; --json for a script. |
--baseline FILE--write-baseline FILE | Fail only on findings absent from the baseline; record one. |
--custom-rules FILE--no-custom-rules | Your own cryptographic functions (default: crypto-view.custom.json in the scan root, below), or ignore that file. |
--include GLOB--exclude GLOB | Narrow the walk. Repeatable. |
--follow-symlinks | Follow symbolic links. Off by default. |
--include-tests | Also scan test, fixture and example files, skipped by default. |
--include-comments | Also report algorithms named only in comments and prose, marked as such. |
--all | Print every finding rather than the first 60. |
--quiet | One summary line. |
--explain RULE--define TERM | One rule in full, or the explanation of a term. |
--list-rules--languages | The catalogue, and the supported languages and libraries. |
--no-color | No ANSI colour (also NO_COLOR, or a non-terminal stdout). |
--token TOKEN--qcomply-url URL | Report to a QComply account. Prefer QCOMPLY_TOKEN: a token on the command line shows in the process table and CI logs. |
--no-report | Do not report on this run, even with a token. |
--no-snippets--host NAME--path-label PATH | When reporting: leave out the source lines, or file the codebase under another host or folder. |
Exit codes: 0 completed, 1 a gate failed,
2 the scan could not run, 3 the report to QComply
could not be delivered.
Only what is new
Each --new run compares with the previous one in
.crypto-view/ (never committed: it holds a
.gitignore) and lists only the new findings. A finding that
moved down the file is not new, and an engine update does not make old
findings look new. The terminal, the Markdown summary and the gate take
the new findings; the CBOM, SARIF and Code Quality reports stay
complete, and SARIF marks each result new or
unchanged. In CI, compare with a baseline the default
branch wrote: --write-baseline, then
--new --baseline FILE.
Selectors, policy file and baseline
| Selector | Matches |
|---|---|
hndl | Key establishment and public-key encryption |
posture=broken,vulnerable | By posture |
primitive=key-agree,kem | By primitive |
algorithm=RSA,ECDH | By algorithm |
kind=call, language=java | Call sites only; by language |
Terms in one selector must all match the same finding.
A baseline lets an existing codebase adopt the gate: record today's
findings with --write-baseline crypto-view-baseline.json,
commit it, and pass --baseline; only new findings then
fail the build.
Your own cryptographic functions
Required: id (rule custom.<id>), and
quantum_safe or posture. Optional:
name, symbols, patterns,
primitive (a kem counts as key establishment),
language, hndl, description,
remediation. Each call site is reported like a catalogue
finding.
Visual Studio Code
The extension runs the same engine on the developer's machine, with nothing leaving it: findings in the Problems panel, the posture in the side bar, a hover that explains each finding, a quick fix that suppresses one with a reason, and only what is new since a recorded baseline. It is delivered as a VSIX with QComply and needs Python 3.9 or newer.
Suppressing a finding
A reviewed finding is suppressed with a comment on its line or the line above. Suppressed findings are still counted in the summary.
Limits
- Compiled dependencies, container images and binaries are not read; a manifest entry is inventory.
- What a key, a token header or a configuration decides at run time is located but not named.
- What a running system negotiates on the wire needs a different tool.
- Test files (
test,spec,fixtures,examples,mocks,e2edirectories;FooTest.java,foo_test.go,test_foo.py,foo.spec.ts) are skipped unless--include-tests; on this site, always. - Algorithms named only in comments or Markdown are not reported unless
--include-comments. - Whether a use is acceptable is your judgement. An empty result describes what the scan covered, not the whole system.