摘要:
ifobject_ID('fn_ACITEncryption')isnotnulldropfunctionfn_ACITEncryptiongocreatefunctionfn_ACITEncryption(@Strnvarchar(4000),--加密的字符串@Flagbit=1,--1、加密0、解密@Keynvarchar(50)--密文)returnsnvarchar(4000)--這里可轉換成二進制withEncryptionasbeginDeclare@LenStrint,@iint,@Str2nvarchar(4000),@Splitnvarchar(2),@Len 阅读全文