I need to build a procedure in ASP that encrypts a file using the AES algorithm, I have the AES algorithm but it asks for a buffer and a password parameters, and I need to pass a filename as parameter.

For example: I have the file C:\Files\abc.tx t

I need :

Sub encrypt (filename, password)
fileEncrypted = AESAlgorithm(fi lename, password)
End sub

Please help me to develop...