Kickass Crypto

Find us on GitHub: https://github.com/jj5/kickass-crypto.

KickassCrypto.php

2023-03-30 jj5 - this is the Kickass Crypto library service framework.

2023-04-05 jj5 - if you just want a default implementation decide whether you want the Sodium implementation or the OpenSSL implementation and then include one (or both) of:

  • inc/sodium.php
  • inc/openssl.php

if you're not sure, use Sodium.

2023-03-30 jj5 - make sure you load a valid config.php file, then use this library like this:

$ciphertext = kickass_round_trip()->encrypt( 'secret data' );

$plaintext = kickass_round_trip()->decrypt( $ciphertext );

see README.md for more info.

Tags
link
https://github.com/jj5/kickass-crypto

Interfaces, Classes, Traits and Enums

KickassCrypto
2023-04-05 jj5 - this class provides the base framework for a crypto service; you can extend it yourself or use one (or more) of the services implemented as modules in this library.

Table of Contents

KICKASS_CRYPTO_DISABLE_CONFIG_VALIDATION  = false
2023-04-07 jj5 - programmers can disable config validation by defining this constant as true.
KICKASS_CRYPTO_DISABLE_KEY_HASH_VALIDATION  = false
2023-04-07 jj5 - programmers can disable secret key hash function validation by defining this constant as true.
KICKASS_CRYPTO_DISABLE_RANDOM_BYTES_VALIDATION  = false
2023-04-07 jj5 - programmers can disable validation of the random_bytes() function by defining this constant as true.

Constants

KICKASS_CRYPTO_DISABLE_CONFIG_VALIDATION

2023-04-07 jj5 - programmers can disable config validation by defining this constant as true.

public bool KICKASS_CRYPTO_DISABLE_CONFIG_VALIDATION = false

KICKASS_CRYPTO_DISABLE_KEY_HASH_VALIDATION

2023-04-07 jj5 - programmers can disable secret key hash function validation by defining this constant as true.

public bool KICKASS_CRYPTO_DISABLE_KEY_HASH_VALIDATION = false

KICKASS_CRYPTO_DISABLE_RANDOM_BYTES_VALIDATION

2023-04-07 jj5 - programmers can disable validation of the random_bytes() function by defining this constant as true.

public bool KICKASS_CRYPTO_DISABLE_RANDOM_BYTES_VALIDATION = false

Search results