<commit_before>{
	"name":"generateSecretKey",
	"type":"function",
	"syntax":"generateSecretKey([algorithm])",
	"returns":"String",
	"related":["encrypt","decrypt"],
	"description":"Generates a secure random key value for use in the encrypt and decrypt functions.",
	"params": [
		{"name":"algorithm","description":"","required":false,"default":"","type":"String","values":["CFMX_COMPAT","AES","BLOWFISH","DES","DESEDE"]}

	],
	"engines": {
		"coldfusion": {"minimum_version":"7", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-e-g/generatesecretkey.html"},
		"lucee": {"minimum_version":"", "notes":"", "docs":"http://docs.lucee.org/reference/functions/generatesecretkey.html"},
		"railo": {"minimum_version":"", "notes":"", "docs":"http://railodocs.org/index.cfm/function/generatesecretkey"},
		"openbd": {"minimum_version":"", "notes":"", "docs":"http://openbd.org/manual/?/function/generatesecretkey"}
	},
	"links": [
		{
			"title":"Generating AES 256 bit Key",
			"description":"How to enable unlimited strength crypto in Java.",
			"url":"http://www.petefreitag.com/item/803.cfm"
		}
	],
	"examples": [
		{
			"title":"Generate an AES 128 bit Key",
			"description":"Generate a AES key and use it to encrypt and decrypt a secret.",
			"code":"ex={};\nex.key = generateSecretKey(\"AES\");\nex.secret = \"top secret\";\nex.encrypted=encrypt(ex.secret, ex.key, \"AES\", \"Base64\");\nex.decrypted=decrypt(ex.encrypted, ex.key, \"AES\", \"Base64\");\nwriteDump(ex);",
			"result":""<commit_msg>Missing keysize argument for generateSecretKey.<commit_after>{
	"name":"generateSecretKey",
	"type":"function",
	"syntax":"generateSecretKey([algorithm] [,keysize])",
	"returns":"String",
	"related":["encrypt","decrypt"],
	"description":"Generates a secure random key value for use in the encrypt and decrypt functions.",
	"params": [
		{"name":"algorithm","description":"","required":false,"default":"","type":"String","values":["CFMX_COMPAT","AES","BLOWFISH","DES","DESEDE"]},
		{"name":"keysize","description":"Number of bits requested in the key for the specified algorithm (when allowed by JDK).","required":false,"default":"128","type":"Numeric","values":["128", "256"]}

	],
	"engines": {
		"coldfusion": {"minimum_version":"7", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-e-g/generatesecretkey.html"},
		"lucee": {"minimum_version":"", "notes":"", "docs":"http://docs.lucee.org/reference/functions/generatesecretkey.html"},
		"railo": {"minimum_version":"", "notes":"", "docs":"http://railodocs.org/index.cfm/function/generatesecretkey"},
		"openbd": {"minimum_version":"", "notes":"", "docs":"http://openbd.org/manual/?/function/generatesecretkey"}
	},
	"links": [
		{
			"title":"Generating AES 256 bit Key",
			"description":"How to enable unlimited strength crypto in Java.",
			"url":"http://www.petefreitag.com/item/803.cfm"
		}
	],
	"examples": [
		{
			"title":"Generate an AES 128 bit Key",
			"description":"Generate a AES key and use it to encrypt and decrypt a secret.",
			"code":"ex={};\nex.key = generateSecretKey(\"AES\");\nex.secret = \"top secret\";\nex.encrypted=encrypt(ex.secret, ex.key, \"AES\", \"Base64\");\nex.decrypted=decrypt(ex.encrypted, ex.key, \"AES\", \"Base64\");\nwriteDump(ex);",
			"result":""
{'fraction_non_alphanumeric': 0.23564593301435408, 'fraction_numerical': 0.011064593301435407, 'mean_word_length': 6.240259740259741, 'pattern_counts': {'":': 84, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2243675', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1080, 'n_words': 190}