パラメーター
        
            
                最終更新日 : 
                
                    2022年1月19日
                
            
            
        
        
    
説明
この関数は、プレーンテキストとハッシュ値を受け取り、そのテキストとハッシュ値を比較します。
シンタックス
VerifyBCryptHash(plaintext, hashedString)
履歴
ColdFusion(2021 リリース):この関数が追加されました。
パラメーター
| 
                    
     | 
                
            
                
                    
     説明  | 
                
            
        
|---|---|
| 
                    
     plaintext  | 
            
                
                
                    
     (必須)ハッシュ関数の実行対象となる入力文字列。  | 
            
        
| 
                    
     hashedString  | 
            
                
                
                    
     (必須)GenerateBCryptHash 関数からのハッシュ出力。  | 
            
        
例
<cfscript> 
    stringToEncrypt = "Sample string" 
    options = StructNew() 
    options.rounds = 4 
    options.version = "$2a" 
    bcrypted = GenerateBCryptHash(stringToEncrypt, options) 
    verified=VerifyBCryptHash(stringToEncrypt,bcrypted) 
    writeDump(verified) 
</cfscript>
		
	
出力
YES