CFLib.org – Common Function Library Project

SecurityLib

Last updated October 2, 2012 / 25 Released UDF(s)
createWEPKey

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

genAESKeyFromPW

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

generatePassword

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

generateRandomKey

Generate a random key with options | Requires: CF5

getAuthUsername

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

iMailPasswordDecryption

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

IsLoggedIn

Returns true if user is authenticated. | Requires: CF6

IsManipulated

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

IsSecureSite

Checks to see if the current page is being run on a secure server. | 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

MakePassword

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

MD5

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

passwordCheck

Checks the compelxity of a password. | Requires: CF6

RC4

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

Ripemd160

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

Rot13

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

Secure

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

SecureMX

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

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

trimFalseEmailHeaders

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

URLCheckHash

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

URLDecrypt

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

URLEncrypt

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

URLHash

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

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson