I have implemented encryption capicom using python. how to set algorithm key length, name and secret with java?
def encrypt(key,content):
EncryptedData = win32com.client.Dispatch('CAPICOM.EncryptedData')
EncryptedData.Algorithm.KeyLength = 0
EncryptedData.Algorithm.Name = 4
EncryptedData.SetSecret(key)
EncryptedData.Content = content
return EncryptedData.Encrypt()