CFLib.org – Common Function Library Project

SecurityLib

Last updated October 02, 2012 / 25 Released UDF(s)
Rot13

Caesar-cypher encryption that replaces each English letter with the one 13 places forward or back along the alphabet. | Requires: CF5

Sha1

Produces a 160-bit condensed representation (message digest) of message using the Secure Hash Algorithm (SHA-1). | Requires: CF5

Sha256

Produces a 256-bit condensed representation (message digest) of message using the Secure Hash Algorithm (SHA-256). | Requires: CF5

Ripemd160

Produces a 160-bit condensed representation (message digest) of a message using the RIPEMD-160 algorithm. | Requires: CF5

MD5

Produces a 128-bit condensed representation (message digest) of a message using the RSA MD5 algorithm. | Requires: CF5

MakePassword

Generates an 8-character random password free of annoying similar-looking characters such as 1 or l. | Requires: CF5

URLHash

URL Security tool to prevent a user from changing any part of a URL. | Requires: CF5

URLCheckHash

Used along with URLHash to verify the URL integrity. | Requires: CF5

IsLoggedIn

Returns true if user is authenticated. | Requires: CF6

iMailPasswordDecryption

Decryption of the Password for an IPSWITCH IMail-Account (Tested for IMail 6). | Requires: CF5

IsManipulated

Checks if the URL (maybe a key) was manipulated or if the form was copied and changed. | Requires: CF5

Secure

This function validates user permissions against required permissions using Bit, List or custom validation. | Requires: CF5

URLDecrypt

Add security by encrypting and decrypting URL variables. See URLEncrypt. | Requires: CF5

SecureMX

This function validates user permissions against required permissions using either Bit, List or custom validation. | Requires: CF6

URLEncrypt

Add security by encrypting and decrypting URL variables. | Requires: CF5

IsSecureSite

Checks to see if the current page is being run on a secure server. | Requires: CF5

createWEPKey

Creates a 40-bit or 128-bit WEP key. | Requires: CF5

RC4

A function does RC4 encryption by using a key and the string. | Requires: CF5

trimFalseEmailHeaders

Clean variables, such as form input, to modify values that may have been entered to perform e-mail injection. | Requires: CF5

getAuthUsername

Get the authenticated username from the cgi.auth_user or cgi.remote_user without the domain information. | Requires: CF5

generateRandomKey

Generate a random key with options | Requires: CF5

generatePassword

Generates a password the length you specify. | Requires: CF5

isXss

Checks against all the possible combinations of the character "<" in HTML and JavaScript (in UTF-8) and returns a boolean value based on the result. | Requires: CF8

passwordCheck

Checks the compelxity of a password. | Requires: CF6

genAESKeyFromPW

Generates an AES encryption key from a provided password and salt. | Requires: CF9

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson