Skip to content

class SealdUtils

objc
@interface SealdUtils : NSObject

SealdUtils is an interface with utility class methods.

MembersDescriptions
parseSessionIdFromFile:error:Takes the path to an encrypted file, and returns the session id.
parseSessionIdFromBytes:error:Takes an encrypted file as bytes, and returns the session id.
parseSessionIdFromMessage:error:Takes an encrypted message, and returns the session id.

parseSessionIdFromFile:error:

objc
+ (NSString *) parseSessionIdFromFile:(const NSString *_Nonnull)file
                                error:(NSError *_Nullable *)error;

Takes the path to an encrypted file, and returns the session id.

Parameters

  • file Path to the encrypted file.

  • error The error that occurred, if any.

Returns

The session id.

parseSessionIdFromBytes:error:

objc
+ (NSString *) parseSessionIdFromBytes:(const NSData *_Nonnull)bytes
                                 error:(NSError *_Nullable *)error;

Takes an encrypted file as bytes, and returns the session id.

Parameters

  • bytes The encrypted file as bytes.

  • error The error that occurred, if any.

Returns

The session id.

parseSessionIdFromMessage:error:

objc
+ (NSString *) parseSessionIdFromMessage:(const NSString *_Nonnull)message
                                   error:(NSError *_Nullable *)error;

Takes an encrypted message, and returns the session id.

Parameters

  • message The encrypted message.

  • error The error that occurred, if any.

Returns

The session id.