The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

2

public interface IOneWayEncryptionService { string Encrypt(string text); } public interface ICryptographyService : IOneWayEncryptionService { string Decrypt(string text); } These seem to be crippled. The basic operations on which almost everything else can be built are byte[] Encrypt(byte[] plaintext, byte[] key, byte[] iv) byte[] Decrypt(byte[] ...


5

People usually pay not much attention to that, but redundant *Manager, *Processor, *Service suffixes are just some form of signal noise. It is also questionable that two way is really needed the same time at the same place on the consuming side. I would go with: interface IEncryptor { byte[] Encrypt(byte array); } public static class Encryptor { ...


Top 50 recent answers are included