//
//  PBE.h
//  XProtect
//
//  Created by Димитър Кунчев on 11/8/11.
//  Copyright (c) 2011 Milestone Systems. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <CommonCrypto/CommonCryptor.h>
#import <CommonCrypto/CommonKeyDerivation.h>

@interface PBE : NSObject {
    NSData * key;
    NSData * iv;
}

- (id) initWithData: (NSData *) data;

+ (int) keyBytesSize;

- (NSString *) encrypt: (NSString *) value;
- (NSString *) decrypt: (NSString *) value;

@end
